package com.topica.object;

import java.io.Serializable;

public class QuestionItem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8084317536299743474L;
	private int questionId;
	private String name;
	private String questionText;
	private int chooseAnswer;
	private int correctAnswer;
	private int answerChoice;
	
	public QuestionItem(int questionId, String name, String questionText) {
		super();
		this.questionId = questionId;
		this.name = name;
		this.questionText = questionText;
		chooseAnswer = -1;
		correctAnswer = -2;
		answerChoice = 0;
	}

	public int getQuestionId() {
		return questionId;
	}

	public String getName() {
		return name;
	}

	public String getQuestionText() {
		return questionText;
	}

	public void setAnswer(int indexAnswer) {
		this.chooseAnswer = indexAnswer;
	}

	public int getChooseAnswer() {
		return chooseAnswer;
	}

	public void setCorrectAnswer(int correctAnswer) {
		this.correctAnswer = correctAnswer;
	}

	public int getCorrectAnswer() {
		return correctAnswer;
	}
	
	public void setAnswerIdChoice(int answerId){
		this.answerChoice = answerId;
	}
	
	public int getAnswerChoice() {
		return answerChoice;
	}

}
